<!--
 * @author: Spring
 * @create: 2021-06-26 10:52 AM
 * @license: MIT
 * @lastAuthor: Spring
 * @lastEditTime: 2021-06-29 18:36 PM
 * @desc: 
-->
<template>
  <div class='container'>
    <div class="top">
      <div class="profile">
        <img :src="$image(info.icon)" alt="">
      </div>
      <div class="right">
        <div class="name">{{info.nick_name}}</div>
        <div class="info"></div>
      </div>
    </div>
    <div class="bottom">
      <div class="attentionnum">
        <div class="num">{{attention.my_concern&&attention.my_concern.length?attention.my_concern.length:0}}</div>
        <div class="gz">关注</div>
      </div>
      <div class="attentionnum">
        <div class="num">{{attention.fans&&attention.fans.length?attention.fans.length:0}}</div>
        <div class="gz">关注者</div>
      </div>
      <div class="attention">关注</div>

    </div>
  </div>
</template>

<script>
  import {concernList} from '/utils/api.js'
export default {
  props:['info','attention'],
  data() {
    return {
    };
  },
  components: {

  },
  mounted() {
  },
  methods: {
    
  },
};
</script>

<style scoped lang="scss">
  .container{
    width: 150px;
    height: 160px;
    background-color: #fff;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 8%);
    border-radius: 2px;box-sizing: border-box;
    padding: 15px 15px 18px;
    z-index: 999;
    .top{
      @include flex(flex-start,center);
      .profile{
        width: 60px;
        height: 60px;
        border-radius: 50%;
        @include flex();
        box-shadow: 0 2px 6px 0 rgb(0 0 0 / 15%);
        img{
          width: 100%;
          height:100%;
          border-radius: 50%;
        }
      }
      .right{
        @include flex(space-between,flex-start,column);
        height: 60px;
        .name{
          @include font(14px,#333,600);
        }
        .info{
          @include font(13px,#8f969c);
        }
      }
    }
    .bottom{
      height: 67px;
      width: 100%;
      @include flex(space-between,center);
      .attentionnum{
        .num{
          @include font(16px,#17181a,600);
        }
        .gz{
          @include font(13px,#8f969c);
        }
      }
      .attention{
        width: 74px;
        height: 30px;
        color: #37c701;
        border: 1px solid #37c701;
        @include flex();
        background-color: #fff;
      }
    }
  }
</style>
